//
//  MYSettingViewController.m
//  奇闻
//
//  Created by 似水灵修 on 14-12-1.
//  Copyright (c) 2014年 MingYueGuCheng. All rights reserved.
//

#import "MYSettingViewController.h"
#import "MYBaseSetting.h"
#import "MYCommonSettingViewController.h"
#import "MYFontSizeViewCOntroller.h"

@implementation MYSettingViewController
- (void)viewDidLoad {
    [super viewDidLoad];
    [self setupGroup0];
    [self setupGroup1];
    [self setupGroup2];
    [self setupGroup3];
}
- (void)setupGroup0
{
    // 账号管理
    MYBadgeItem *account = [MYBadgeItem itemWithTitle:@"账号管理"];
    account.badgeValue = @"10";
    MYGroupItem *group = [[MYGroupItem alloc] init];
    group.items = @[account];
    [self.gorups addObject:group];
}
- (void)setupGroup1
{
    // 提醒和通知
    MYArrowItem *notice = [MYArrowItem itemWithTitle:@"我的相册" ];
    // 通用设置
    MYArrowItem *setting = [MYArrowItem itemWithTitle:@"通用设置" ];
    // 设置跳转控制器的类名
    setting.destVCClass = [MYCommonSettingViewController class];
    // 隐私与安全
    MYArrowItem *secure = [MYArrowItem itemWithTitle:@"隐私与安全" ];
    MYGroupItem *group = [[MYGroupItem alloc] init];
    group.items = @[notice,setting,secure];
    [self.gorups addObject:group];

}
- (void)setupGroup2
{
    // 意见反馈
    MYArrowItem *suggest = [MYArrowItem itemWithTitle:@"意见反馈" ];
    // 关于奇闻
    MYArrowItem *about = [MYArrowItem itemWithTitle:@"关于奇闻"];
    MYGroupItem *group = [[MYGroupItem alloc] init];
    group.items = @[suggest,about];
    [self.gorups addObject:group];
}
- (void)setupGroup3
{
    MYLabelItem *logout = [MYLabelItem itemWithTitle:@"退出当前账号"];
    MYGroupItem *group = [[MYGroupItem alloc] init];
    group.items = @[logout];
    [self.gorups addObject:group];
}
@end
